/*
 * Copyright Eugen Stoian <stoian.e@gmail.com> 2010
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef ASTNODEBUILDER_H
#define ASTNODEBUILDER_H
#include <QVector>
#include <QString>
class ASTNode;
class ASTNodeBuilder
{
public:
    ASTNodeBuilder();
    virtual ASTNode* newModuleNode(const QString& aModuleName = QString("main"));
    virtual ASTNode* newVariableNode(const QString& anObjectName);
    virtual ASTNode* newNumberNode(const QString& aNumberString);
    virtual ASTNode* newDefinitionNode(const QString& aPrototypeName, const QVector<QString>& params);
    virtual ASTNode* newExpressionNode(const QString& anOperatorName, QVector<ASTNode*> & args);
    ASTNode* getRootNode();
private:
    ASTNode *_rootNode;
};

#endif // ASTNODEBUILDER_H
